package com.ss.android.newmedia.webview;

import android.graphics.Bitmap;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import com.bytedance.frameworks.b.a.c;

public class DelegateWebViewClient extends WebViewClient {
    private WebViewClient realWebViewClient;

    public DelegateWebViewClient() {
        Object v0 = c.a(com.ss.android.dd.class);
        if(v0 != null) {
            this.realWebViewClient = ((com.ss.android.dd)v0).a();
        }
    }

    public void onPageFinished(WebView webView, String url) {
        if(this.realWebViewClient != null) {
            this.realWebViewClient.onPageFinished(webView, url);
        }
    }

    public void onPageStarted(WebView webView, String url, Bitmap favicon) {
        if(this.realWebViewClient != null) {
            this.realWebViewClient.onPageStarted(webView, url, favicon);
        }
    }

    public void onReceivedError(WebView webView, int errorCode, String description, String failingUrl) {
        if(this.realWebViewClient != null) {
            this.realWebViewClient.onReceivedError(webView, errorCode, description, failingUrl);
        }
    }
}

